﻿package com.firewolf.proxy.mains;

import java.rmi.Naming;

import com.firewolf.proxy.impls.MyRemoteImpl;
import com.firewolf.proxy.interfaces.MyRemoteService;

public class ServerMain {
	public static void main(String[] args) {
		bindProxy() ;
	}
	private static void bindProxy(){
		try {
			MyRemoteService service = new MyRemoteImpl();
			Naming.bind("RemoteHello", service);
		} catch (Exception e) {
			e.printStackTrace();
		} 
	}
}
